home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10345 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.9 KB  |  52 lines

  1. Newsgroups: comp.lang.c
  2. Path: nntp-hub3.barrnet.net!voder!nsc!rustler!toml
  3. From: toml@rustler.nsc.com (Thomas Likens)
  4. Subject: Re: Object Oriented programming in C ????
  5. Message-ID: <Do5xMF.BCo@nsc.nsc.com>
  6. Sender: news@nsc.nsc.com (netnews maintenance)
  7. Nntp-Posting-Host: rustler.nsc.com
  8. Reply-To: toml@rustler.nsc.com (Thomas Likens)
  9. Organization: National Semiconductor, Santa Clara
  10. References: <4higq7$5j2@sidhe.memra.com> <4i2hvm$ect@newshost.cyberramp.net>
  11. Date: Tue, 12 Mar 1996 16:25:27 GMT
  12.  
  13. In article <4i2hvm$ect@newshost.cyberramp.net>, sinan@cyberramp.net (John Noland) writes:
  14. |> In article <4higq7$5j2@sidhe.memra.com>, michael@memra.com says...
  15. |> >
  16. |> >Does anyone know of resources that explain how to write OO programs in C?
  17. |> >I know about C++ and Objective C and I don't like either one. I would 
  18. |> >like to be able to write OO programs in straight C (with some 
  19. |> >preprocessor help for syntactic sugar) so that my code is fully portable 
  20. |> >between a number os OS's.
  21. |> >
  22. |> 
  23. |> There is a book on this that I really like.
  24. |> 
  25. |> C+C++ - Programming With Objects in C and C++
  26. |> Alan I. Holub
  27. |> McGraw-Hill 1992, ISBN 0-07-029662-6
  28. |> 
  29. |> The first chapter is called Object-Oriented Programming in C. It's a great
  30. |> book. He also has a book called "Compiler Design in C". He uses an object
  31. |> oriented development style in straight C to develop a C compiler. FWIW, I
  32. |> think you'll find that if you have an application that lends itself to
  33. |> an object-oriented solution, C++ is the better choice. 
  34. |> 
  35. |> -John
  36. |> 
  37. |> 
  38.  
  39. I whole-heartedly agree.  Holub's book is excellent.  In fact anything he
  40. writes is outstanding.  Two other books definitely worth a look...
  41.  
  42. __The C Companion__ - An older work but still valid.
  43.  
  44. and
  45.  
  46. __Just Enough Rope to Shoot Yourself in the Foot__ - Describes the various
  47. pitfalls and problems associated with programming in C and C++ picked up over 
  48. a lifetime of wrestling with them.
  49.  
  50.  
  51. --Tom
  52.